package com.jerry.mingxing.ui.my;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.jerry.mingxing.R;
import com.jerry.mingxing.widget.MyView;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Created by Administrator on 2016/8/29.
 */
public class MyFragment extends Fragment {

    @Bind(R.id.myfragment_myview1)
    MyView myfragmentMyview1;
    @Bind(R.id.myfragment_myview2)
    MyView myfragmentMyview2;
    @Bind(R.id.myfragment_myview3)
    MyView myfragmentMyview3;
    @Bind(R.id.myfragment_myview4)
    MyView myfragmentMyview4;
    @Bind(R.id.myfragment_myview5)
    MyView myfragmentMyview5;
    @Bind(R.id.myfragment_myview6)
    MyView myfragmentMyview6;
    private View view;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.myfragment, container, false);
        ButterKnife.bind(this, view);
        initView();
        return view;
    }

    private void initView() {
        myfragmentMyview1.setTv("我的收货地址");
        myfragmentMyview2.setTv("我的发帖");
        myfragmentMyview3.setTv("我关注的品牌");
        myfragmentMyview4.setTv("我关注的标签");
        myfragmentMyview5.setTv("设置");
        myfragmentMyview6.setTv("帮助与反馈");
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }
}
